import { NavBar} from 'antd-mobile'
import { useNavigate } from 'react-router-dom'

function Nabar(props:any) {
    const {title}=props
    const nav=useNavigate()
  return (
    <div style={{background:'#fff'}}>
        <NavBar onBack={()=>nav(-1)} >{title}</NavBar>
    </div>
  )
}

export default Nabar
